<?php

require_once 'Pipes/Exception.php';

class Pipes_Value_Callback
{
    public $value;
    
    public function __construct($callback)
    {
        if (!is_callable($callback)) {
            throw new Pipes_Exception('ERR_INVALID_CALLBACK');
        }
        $this->value = $callback;
    }
}